﻿using System;

namespace Aspire.Domain
{
    public class ResponseException : Exception
    {
        public ResponseException(StatusCodesEnum code, string title, string[] errors) : base(title)
        {
            Code = code;
            Title = title;
            Errors = errors;
        }

        public StatusCodesEnum Code { get; }
        public string Title { get; }
        public object[] Errors { get; }
    }
}
